<!-- src/App.vue -->
<template>
  <el-container>
    <el-aside width="auto">
      <!--   左侧导航栏   -->
      <Sidebar/>
    </el-aside>
    <el-container>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import Sidebar from "../components/Sidebar.vue";

export default {
  name: 'App',
  components: {
    Sidebar
  }
}
</script>

<style>
body, html, #app {
  margin: 0;
  padding: 0;
  height: 100%;
}

.el-main {
  --el-main-padding: 0px !important;
}

.el-container {
  height: 100%;
}

.el-aside {
  transition: width 0.3s;
}
</style>
